<template>
	<view>	
		<view>
			{{hasLogin?`${uerInfo.username} is logining` :""}}
		</view>
		<button v-if="hasLogin" class="cb" type="primary" @click="LogOut">登出</button>
	</view>
</template>

<script>
	import {mapState,mapMutations} from 'vuex';
	export default{
		NAVTITLE  :  "用户信息",
		data(){
			return {
				apis:{
					login:"/Login/Index",									
				}				
			}
		},
		onLoad() {			
		},
		mounted() {			
		},
		watch:{			
		},
		computed:mapState(['hasLogin','uerInfo']),
		methods:{		
			...mapMutations(['logout']),
			LogOut(){
				this.logout();
			}					
		}		
	}
</script>

<style lang="scss" scoped>
	.cb{
		position: fixed;
		bottom: 20upx;
		left: 2%;
		width: 96%;
	}
</style>
